-- GENERATED SPELL FOR [Risen Warrior] --


function spell0_10486(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10486', 2343, 1)
end

function spell1_10486(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(16509,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10486', 15000, 1)
end

function spell2_10486(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10486', 549, 1)
end

function spell3_10486(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15588,pUnit)
pUnit:RegisterEvent('Sorts_10486', 10270, 1)
end

function Sorts_10486(pUnit, Event)
local choix_sorts_10486 = math.random(0, 3)
if choix_sorts_10486 == 0 then
pUnit:RegisterEvent('spell0_10486', 1, 1)
end
if choix_sorts_10486 == 1 then
pUnit:RegisterEvent('spell1_10486', 1, 1)
end
if choix_sorts_10486 == 2 then
pUnit:RegisterEvent('spell2_10486', 1, 1)
end
if choix_sorts_10486 == 3 then
pUnit:RegisterEvent('spell3_10486', 1, 1)
end
end

function mob10486_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10486', math.random(1500, 3000), 1)
end

function mob10486_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10486_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10486_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10486, 1, 'mob10486_Action')
RegisterUnitEvent(10486, 2, 'mob10486_Leave')
RegisterUnitEvent(10486, 3, 'mob10486_Kill')
RegisterUnitEvent(10486, 4, 'mob10486_Die')
